package tech.yunjing.train.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 账户明细实体类
 * Created by ZhangFan on 2017/6/8.
 */
public class AccountDetail implements Serializable {
    /**
     * detailId:明细的Id
     * accountName:映射账户主键
     * happendMoney:发生金额
     * happendTime：发生的时间
     */
    private Integer detailId;
    private String accountName;
    private Double happendMoney;
    private Date happendTime;

    public AccountDetail() {
    }

    public AccountDetail(Integer detailId, String accountName, Double happendMoney, Date happendTime) {
        this.detailId = detailId;
        this.accountName = accountName;
        this.happendMoney = happendMoney;
        this.happendTime = happendTime;
    }

    public Integer getDetailId() {
        return detailId;
    }

    public void setDetailId(Integer detailId) {
        this.detailId = detailId;
    }

    public String getAccountName() {
        return accountName;
    }

    public void setAccountName(String accountName) {
        this.accountName = accountName;
    }

    public Double getHappendMoney() {
        return happendMoney;
    }

    public void setHappendMoney(Double happendMoney) {
        this.happendMoney = happendMoney;
    }

    public Date getHappendTime() {
        return happendTime;
    }

    public void setHappendTime(Date happendTime) {
        this.happendTime = happendTime;
    }

    @Override
    public String toString() {
        return "AccountDetail{" +
                "detailId=" + detailId +
                ", accountName='" + accountName + '\'' +
                ", happendMoney=" + happendMoney +
                ", happendTime=" + happendTime +
                '}';
    }
}
